package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.PostCommentBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.PostCommentIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class PostCommentModel extends RetrofitBaseModel implements PostCommentIface<PostCommentBean> {
    LoginService loginService;
    Retrofit retrofit;
    public PostCommentModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }


    @Override
    public void getPostComment(String post_id, ListListener<PostCommentBean> listListener) {
        Call<List<PostCommentBean>> call = loginService.commentlist(post_id);
        callenqueueList(call,listListener);
    }
}
